import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
  { path: "/", redirect: "/agenda" },
  { path: "/agenda", component: () => import("@/views/Agenda/index.vue") },
];

const router = new VueRouter({
  mode: "hash",
  scrollBehavior: () => ({ y: 0 }),
  routes, // (缩写) 相当于 routes: routes
});

export default router;
